﻿
using Microsoft.AspNetCore.Http;
using Models.Common;
using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using static Models.Common.EnumDeviceModelType;
using ServiceWeb.WebAdmin;
using System.Reflection.Emit;
using UtilsORM;
using UtilsORM.MySqlData;
////using System.Web.Script.Serialization;

namespace ServiceWeb.DBGateway
{
    public class DBIotDeviceControlApiRequestLog
    {


        EFYihongIotContext ef = new EFYihongIotContext();
        public void add(string guid, string content, MagerLoginInfo loginInfo)
        {
            //iot_device_control_api_request_log log = new iot_device_control_api_request_log();
            //log.l_guid = guid;
            //log.l_content = content;
            //log.l_add_time = DateTime.Now;
            //log.l_c_guid = loginInfo.userCompanyGuid; ;
            //log.l_cu_guid = loginInfo.user_guid;
            //new MySqlYihongIot().Db.Insertable<iot_device_control_api_request_log>(log).ExecuteCommand();
            //ef.iot_device_control_api_request_log.AddAsync(log);
           // ef.SaveChangesAsync();
        }


    }
}
